/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.exam;

/**
 * <p>Project: javase - Ex1
 * <p>Powered by webrx On 2021-12-09 19:08:14
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex1 {
    public static void main(String[] args) {
        //逻辑异或 ^
        System.out.println(true ^ false);
        System.out.println(false ^ true);
        System.out.println(false ^ false);
        System.out.println(true ^ true);

        //逻辑与 &&(短路)   &  and
        System.out.println(false && true); //false
        System.out.println(false & true); //false

        //逻辑或 ||(短路)    |  or
        System.out.println(true || false);//true
        System.out.println(true | false);//true

        //逻辑非 !   not
        System.out.println(!!(3 == 6));
    }
}
